package com.filldream.fastboot.common.stockUtils.cffex.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.filldream.fastboot.common.okutil.stock.cf.kline.KLineItemDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class StockIndexFuture {

    @TableId( type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员简称，例如（中信期货(代客)）")
    private String shortname;

    @ApiModelProperty(value = "成交量(手)")
    private Integer volume;

    @ApiModelProperty(value = "比上交易日增减(手)")
    private Integer varvolume;

    @TableField("futures_rank")
    @ApiModelProperty(value = "名次")
    private Integer rank;

    @ApiModelProperty(value = "数据类型 0-全部 1-买 2-卖")
    private Integer datatypeid;

    @ApiModelProperty(value = "合约ID，例：IF2506")
    private String instrumentid;

    @ApiModelProperty(value = "交易日，例：20250606")
    private String tradingday;

    @ApiModelProperty(value = "券商ID")
    private String partyid;

    @ApiModelProperty(value = "股指期货类型，例：IF")
    private String productid;


    /**  自定义参数  **/

    @ApiModelProperty(value = "股指期货名称，例：沪深300股指期货")
    private String productName;

    @ApiModelProperty(value = "对应股指的代码")
    private String searchCode;

    @ApiModelProperty(value = "股指日K线数据Json")
    private String kLineDataJson;

    @TableField(exist = false)
    @ApiModelProperty(value = "股指日K线数据")
    private KLineItemDTO kLineData;

    @TableField(exist = false)
    @ApiModelProperty(value = "净空单，只在卖单列表中展示")
    private Integer onlySellNumber;


}
